#!/bin/bash
## kola:
##   exclusive: false
##   description: Verify NM's internal DHCP client runs by default.

set -xeuo pipefail

# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

if ! journalctl -b 0 -u NetworkManager --grep=dhcp | grep -q "Using DHCP client 'internal'"; then
  fatal "Error: NetworkManager's internal DHCP client is not running"
fi
ok "NetworkManager's internal DHCP client is running"
